#include "protocol.h".h"


PDU *mkPDU(uint uiMsgLen)
{
    uint PDULen = sizeof(PDU) + uiMsgLen;
    PDU* pdu = (PDU*)malloc(PDULen);
    if(pdu == NULL)
    {
        exit(EXIT_FAILURE);
    }

    pdu->uiPDULen = PDULen;
    pdu->uiMsgLen = uiMsgLen;

    return pdu;

}
